import request from '@/router/axios'
import store from '@/store'
import {getLineName} from "../../../api/subwayRat/commonCheck";

export const tableOption = {
  "border": true,
  "index": true,
  "indexLabel": "序号",
  "stripe": true,
  "menuAlign": "center",
  "align": "center",
  addBtn: false,
  delBtn: false,
  editBtn: false,
  selection: true,
  reserveSelection:false,
  searchMenuSpan: 6,
  menuWidth: 150,
  height: 450,
//   selectable: row => {
//      return row.confirmStatus== '0';
//   },
  "column": [{
      "type": "input",
      "label": "唯一标识",
      "prop": "id",
      hide: true,
      display: false
    },	  {
      "type": "input",
      "label": "线路编码不能重复",
      "prop": "lineCode",
      hide: true,
      display: false
    },	  {
      "type": "input",
      "label": "车站编码不能重复",
      "prop": "stationCode",
      hide: true,
      display: false
    },	  {
      "type": "date",
      "label": "日期",
      "prop": "statisticsDate",
      format: 'yyyy-MM-dd',
      valueFormat: 'yyyy-MM-dd',
      search: false,
      searchslot:true,
      editDisabled: true,
      width: 90
    }, {
      label: '票种',
      prop: 'ticketTypeEn',
      search: true,
      type: 'select',
      cascaderItem: ["ticketTypeParamEn"],
      dicUrl: "/support/swpmticketcardtype/dict",
      props: {
        label: 'mainName',
        value: 'mainEnName'
      },
      rules: [{
        required: true,
        message: '请选择票种',
        trigger: 'blur'
      }],
      display: true,
      editDisabled: true,
      width: 90
    },{
      label: '车票名称',
      prop: 'ticketTypeParamEn',
      type: 'select',
      search: true,
      dicFlag: false,
      props: {
        label: 'subName',
        value: 'subEnName'
      },
      dicUrl: '/support/swpmticketcardtypeparam/dictAll/{{key}}',
      display: true ,
      rules: [{
        required: true,
        message: '请选择车票名称',
        trigger: 'blur'
      }],
      editDisabled: true,
      width: 130
    },{
      "type": "number",
      "label": "上日结存",
      "prop": "balanceLastday",
      editDisabled: true
    },	  {
      "type": "number",
      "label": "调入本站",
      "prop": "transferStation",
      editDisabled: true
    },	  {
      "type": "number",
      "label": "调出本站",
      "prop": "leaveStation",
      editDisabled: true
    },	  {
      "type": "number",
      "label": "配入本站",
      "prop": "distributionStation",
      editDisabled: true
    },	  {
      "type": "number",
      "label": "AGM回收",
      "prop": "agmRecovery",
      editDisabled: true
    },	  {
      "type": "number",
      "label": "票房售出",
      "prop": "boxOfficeSale",
      editDisabled: true
    },	  {
      "type": "number",
      "label": "车票替换",
      "prop": "ticketReplace",
      editDisabled: true
    },	  {
      "type": "number",
      "label": "TVM售出",
      "prop": "tvmSellOut",
      editDisabled: true
    },	  {
      "type": "number",
      "label": "STM售出",
      "prop": "internetSales",
      editDisabled: true
    },	  {
      "type": "number",
      "label": "BOM废票",
      "prop": "bomScrapTicket"
    },	  {
      "type": "number",
      "label": "TVM废票",
      "prop": "tvmScrapTicket"
    },	  {
      "type": "number",
      "label": "AGM废票",
      "prop": "agmScrapTicket"
    },	  {
      "type": "number",
      "label": "STM废票",
      "prop": "networkScrapTicket",
      width: 90
    },	  {
      "type": "number",
      "label": "废票小计",
      "prop": "scrapSubtotal",
      editDisabled: true,
      addDisabled: true,
    },	  {
      "type": "number",
      "label": "上交车票",
      "prop": "handTicket",
      editDisabled: true
    },	  {
      "type": "number",
      "label": "人工回收",
      "prop": "artificialRecovery",
      //editDisabled: true
    },	  {
      "type": "number",
      "label": "本日结存",
      "prop": "balanceToday",
      editDisabled: true
    },	  {
      "type": "input",
      "label": "部门ID",
      "prop": "deptId",
      hide: true,
      display: false
    },	  {
      "type": "input",
      "label": "创建人ID",
      "prop": "creatorId",
      hide: true,
      display: false
    },	  {
      "type": "input",
      "label": "创建人名称",
      "prop": "creatorName",
      hide: true,
      display: false
    },	  {
      "type": "input",
      "label": "创建时间",
      "prop": "createTime",
      hide: true,
      display: false
    },	  {
      "type": "input",
      "label": "数据更新时间",
      "prop": "updateTime",
      hide: true,
      display: false
    },{
      "type": "select",
      "label": "提交状态",
      "prop": "confirmStatus",
      dicData:[{
        label:'未提交',
        value:'0',
      },{
        label:'已提交',
        value:'1',
      }],
      searchslot: true,
      hide: false
    },{
      "type": "input",
      "label": "值班站长",
      "prop": "conformPersonName",  
      width: 90
	 
    },{
      "type": "input",
      "label": "值班站长工号",
      "prop": "confirmPersonJobNo",  
      width: 90
    },{
      hide: false,
      label: '是否加入报表差错',
      prop: 'isAddReprotError',
      type:'select',
      dicData: [{
        label: '是',
        value: '1'
      },{
        label: '否',
        value: '0'
      }],
    },{
      label: '备注',
      prop: 'remark',
      width: 200
    }]
}


export const tableOptionRecords = {
  border: true,
  index: true,
  indexLabel: "序号",
  stripe: true,
  menuAlign: "center",
  align: "center",
  menu: false,
  addBtn:false,
  refreshBtn: false,
  submitBtn: false,
  emptyBtn: false,
  column: [{
      "type": "input",
      "label": "唯一标识",
      "prop": "id",
      hide: true
    },	  {
      "type": "input",
      "label": "线路编码不能重复",
      "prop": "lineCode",
      hide: true
    },	  {
      "type": "input",
      "label": "车站编码不能重复",
      "prop": "stationCode",
      hide: true
    },	  {
      "type": "date",
      "label": "日期",
      "prop": "statisticsDate",
      format: 'yyyy-MM-dd',
      valueFormat: 'yyyy-MM-dd'
    }, {
      label: '票种',
      prop: 'ticketTypeEn',
      type: 'select',
      cascaderItem: ["ticketTypeParamEn"],
      dicUrl: "/support/swpmticketcardtype/dict",
      props: {
        label: 'mainName',
        value: 'mainEnName'
      },
      rules: [{
        required: true,
        message: '请选择票种',
        trigger: 'blur'
      }]
    },{
      label: '车票名称',
      prop: 'ticketTypeParamEn',
      type: 'select',
      dicFlag: false,
      props: {
        label: 'subName',
        value: 'subEnName'
      },
      dicUrl: '/support/swpmticketcardtypeparam/dictAll/{{key}}',
      rules: [{
        required: true,
        message: '请选择车票名称',
        trigger: 'blur'
      }]
    }, {
      "type": "number",
      "label": "上日结存",
      "prop": "balanceLastday"
    },	  {
      "type": "number",
      "label": "调入本站",
      "prop": "transferStation"
    },	  {
      "type": "number",
      "label": "调出本站",
      "prop": "leaveStation"
    },	  {
      "type": "number",
      "label": "配入本站",
      "prop": "distributionStation"
    },	  {
      "type": "number",
      "label": "AGM回收",
      "prop": "agmRecovery"
    },	  {
      "type": "number",
      "label": "票房售出",
      "prop": "boxOfficeSale"
    },	  {
      "type": "number",
      "label": "车票替换",
      "prop": "ticketReplace"
    },	  {
      "type": "number",
      "label": "TVM售出",
      "prop": "tvmSellOut"
    },	  {
      "type": "number",
      "label": "STM售出",
      "prop": "internetSales"
    },	  {
      "type": "number",
      "label": "BOM废票",
      "prop": "bomScrapTicket"
    },	  {
      "type": "number",
      "label": "TVM废票",
      "prop": "tvmScrapTicket"
    },	  {
      "type": "number",
      "label": "AGM废票",
      "prop": "agmScrapTicket"
    },	  {
      "type": "number",
      "label": "STM废票",
      "prop": "networkScrapTicket"
    },	  {
      "type": "number",
      "label": "废票小计",
      "prop": "scrapSubtotal"
    },	  {
      "type": "number",
      "label": "上交车票",
      "prop": "handTicket"
    },	  {
      "type": "number",
      "label": "人工回收",
      "prop": "artificialRecovery"
    },	  {
      "type": "number",
      "label": "本日结存",
      "prop": "balanceToday"
    },	  {
      "label": "备注",
      "prop": "remark",
      width: 200
    },	  {
      "type": "input",
      "label": "部门ID",
      "prop": "deptId",
      hide: true
    },	  {
      "type": "input",
      "label": "创建人ID",
      "prop": "creatorId",
      hide: true
    },	  {
      "type": "input",
      "label": "创建人名称",
      "prop": "creatorName",
      hide: true
    },	  {
      "type": "input",
      "label": "创建时间",
      "prop": "createTime",
      hide: true
    },	  {
      "type": "input",
      "label": "数据更新时间",
      "prop": "updateTime",
      hide: true
    },{
      "type": "select",
      "label": "提交状态",
      "prop": "confirmStatus",
      dicData:[{
        label:'未提交',
        value:'0',
      },{
        label:'已提交',
        value:'1',
      }],
      hide: true
    }]
}
